package com.zeei.gis.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zeei.common.annotation.SysLog;
import com.zeei.common.controller.BasicController;
import com.zeei.common.enums.LogType;
import com.zeei.common.vo.ResultRowsVO;
import com.zeei.gis.service.GencateTypeGisService;
import com.zeei.gis.vo.GencateTypeGisVo;

/**
 * @类型名称：GeneralCategoryGisController
 * @类型描述：字典-通用类别字典管理
 * @功能描述：字典-通用类别字典管理
 * @创建人：jiangqingpeng
 */
@Controller
@RequestMapping("/gis/general")
public class GencateTypeGisController extends BasicController{

	@Autowired
	GencateTypeGisService generalCategoryGisService;
	
	@RequestMapping(value="/list", method=RequestMethod.POST)
	@ResponseBody
	@SysLog(text = "查询监管类别信息", type = LogType.View)
	public ResultRowsVO<GencateTypeGisVo> queryGeneralTypeAndCateory() {
		List<GencateTypeGisVo> generalList = generalCategoryGisService.queryGeneralTypeAndCateory();
		
		return createResultRowsVO(generalList, true, "",(int)generalList.size());
	}
}
